//
//  LDCItemPassViewController.m
//  LaiKeDaoClient
//
//  Created by zouzhisheng on 15/11/27.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import "LDCItemPassViewController.h"
#import "ItemPassTableViewCell.h"
@interface LDCItemPassViewController ()

@end

@implementation LDCItemPassViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNaviTitle:@"申请通过"];
    self.view.backgroundColor=[UIColor colorWithHexString:@"f2f2f2"];
    [self setTabbarHidden:YES];
    [self setNaviLeftButton:@""];
    [self setTabbarHidden:YES];
    [self loadData];
    [self.view addSubview:self.displayView];
    // Do any additional setup after loading the view.
}
#pragma mark-加载数据
-(void)loadData{
    [CSHApiClient toMyAppliProjPassSolution_id:@"" apply_doc_id:@"" DidFinishLoaded:^(KXJson *json, NSString *path) {
        
    } didFailLoaded:^(NSError *error, NSString *path) {
        
    }];
}
-(void)viewDidLayoutSubviews
{
    if ([self.displayView respondsToSelector:@selector(setSeparatorInset:)]) {
        [self.displayView setSeparatorInset:UIEdgeInsetsMake(0,0,0,0)];
    }
    
    if ([self.displayView respondsToSelector:@selector(setLayoutMargins:)]) {
        [self.displayView setLayoutMargins:UIEdgeInsetsMake(0,0,0,0)];
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(UITableView*)displayView{
    if (!_displayView) {
        _displayView=[[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH,SCREEN_HEIGHT-64)];
        _displayView.delegate=self;
        _displayView.dataSource=self;
        _displayView.backgroundColor=[UIColor clearColor];
        [_displayView setTableFooterView:[[UIView alloc] initWithFrame:CGRectZero]];
        
    }
    return _displayView;
}
#pragma mark-UITableViewDataSource,UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}



- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CustomCellIdentifier = @"CellIdentifier";
    ItemPassTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CustomCellIdentifier];
    if (cell ==nil) {
        cell = [[ItemPassTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CustomCellIdentifier];
    }
    cell.selectionStyle=UITableViewCellSelectionStyleNone;
   // [cell loadData:dataModel.data[indexPath.row]];
    return cell;
    
    
    
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 75;
}
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
    if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
        [cell setSeparatorInset:UIEdgeInsetsZero];
    }
    
    if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
        [cell setLayoutMargins:UIEdgeInsetsZero];
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
